<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/WEB-INF/struts-tags.tld"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>欢迎访问产品运营互动中心！</title>
<link rel="stylesheet" href="<s:url value="/css/style_new.css"/>">
<script language="javascript" type="text/javascript"
	src="<s:url value="/components/datepicker/WdatePicker.js"/>">
</script>
<script language="javascript" src="<s:url value="/script/ShowProcessBar.js"/>" type="text/javascript"></script>
<link rel="stylesheet" href="<s:url value="/script/selfResize.js"/>">
<script>
function initLoad(){
	f_iframeResize();
}
window.onload = initLoad;
window.setInterval("initLoad()", 200);
</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<table width="998" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td  background="<s:url value="/images/home_4a.gif"/>"> 
      <table width="863" border="0" cellspacing="0" cellpadding="0" align="center" bgcolor="#FFFFFF">
        <tr>
          <td width="197" valign="top">
		   <%@ include file="/commons/include/catalog_left.inc"%>  
   		  </td>
          <td valign="top">
            
            <s:form action="/business/product/saveProduct.action"  namespace="/business/catalog"   method="post" >
					<input type="hidden" name="product.id" value="${product.id}">
					<table width="660" border="0" cellspacing="0" cellpadding="0"
						background="<s:url value="/images/catalog_manage_8b.gif"/>">
						<tr>
							<td><img src="<s:url value="/images/catalog_manage_8.gif"/>" width=660
								height=11 alt=""></td>
						</tr>
						<tr>
							<td>
							<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
								<TR height=30>
									<TD align=left width="10%">
										<input type="submit" IsShowProcessBar="True"
										name="Submit" value="保 存"> 
										<input type="button" value="返 回"
										onClick="location.href='listProduct.action'">
									</TD>
								</TR>
							</table>
							<s:if test="#returnMsg==null">
							
							</s:if>
							<s:else>
							<TABLE width="98%" cellSpacing=1 cellPadding=0 align="center">
								<TR height=30>
									<TD align=left width="10%">
										<font color="red">${returnMsg}</font>
									</TD>
								</TR>
							</table>
							</s:else>
							<table width="98%" border="0" cellspacing="0" cellpadding="7"
								align="center" class=tablecolor2>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right"><font color="red">*</font>产品名称：</div>
									</td>
									<td width="81%"><s:textfield name="product.name" theme="css_xhtml"/></td>
								</tr>
								<tr> 
				                    <td width="19%" bgcolor="D6E3FA"> 
				                      <div align="right">所属类型： </div>
				                    </td>
				                    <td width="81%">
				                      <input type="text" name="textfield" value="区内语音">
									  <input type="button" name="selType" value="选择类型" onClick="showTypeDialog()"/>
				                    </td>
				                </tr>
				                <tr> 
				                    <td width="19%" bgcolor="D6E3FA"> 
				                      <div align="right">产品简介：</div>
				                    </td>
				                    <td width="81%"> 
				                    
				                      <s:textarea rows="5" cols="60" name="product.description"  theme="css_xhtml" ></s:textarea>
				                    </td>
				                </tr>
				                <tr> 
				                    <td width="19%" bgcolor="D6E3FA"> 
				                      <div align="right">产品图片：</div>
				                    </td>
				                    <td width="81%">
				                      <input type="file" name="textfield3">
				                      <s:file name="img"></s:file>
				                    </td>
				                </tr>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right">创&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;建&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;人：</div>
									</td>
									<td width="81%"><input type="text" name="product.creator"
										value="${product.creator}"></td>
								</tr>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right">有效时间起始：</div>
									</td>
									<td><input type="text" name="product.begin"
										value="<s:date name="product.begin" format="yyyy-MM-dd"/>"
										onFocus="new WdatePicker(this,'%Y-%M-%D',false)">
									</td>
								</tr>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right">有效时间结束：</div>
									</td>
									<td><input type="text" name="product.end"
										value="<s:date name="product.end" format="yyyy-MM-dd"/>"
										onFocus="new WdatePicker(this,'%Y-%M-%D',false)">
									</td>
								</tr>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right">访问地址：</div>
									</td>
									<td width="81%"><s:textfield name="product.linkUrl"  theme="css_xhtml"/></td>
								</tr>
								<tr>
									<td width="19%" bgcolor="D6E3FA">
									<div align="right">功能点描述：</div>
									</td>
									<td width="81%"><s:textfield name="product.description"  theme="css_xhtml"/></td>
								</tr>
							</table>
							</td>
						</tr>
						<tr>
							<td>
								<img src="<s:url value="/images/catalog_manage_8a.gif"/>" width="660"
								height="9">
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		</s:form>
</body>
</html>
<script>

</script>
